<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/include/taglibs.tag"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/WEB-INF/jsp/include/backBase.jsp"%>
<title>文章信息管理</title>
</head>
<body>
	<div class="inc">
		<a class="btn btn-sm btn-primary"
			href="<%=ctx%>/back/article/addArticle.do">添加文章</a> <a
			class="btn btn-sm btn-primary"
			href="javascript:addSelectBox('#del-articles')">批量删除</a>
	</div>
	<table class="table table-hover">
		<thead>
			<tr>
				<th>文章标题</th>
				<th>发布时间</th>
				<th>所属栏目</th>
				<th>所属标签</th>
				<th class="channel-option">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pa.datas }" var="a">
				<tr>
					<td><div class="check-box" id="${a.id }"></div> ${a.title}</td>
					<td>${a.publishTime}</td>
					<td>${a.channel.name }</td>
					<td>${a.tags.name }</td>
					<td class="channel-option"><a
						href="javascript:deleteFrame('#del-article','${a.id }');">删除</a>|
						<a href="<%=ctx%>/back/article/updateArticle.do?id=${a.id}">编辑</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<jsp:include page="/jsp/pager.jsp">
		<jsp:param value="${pa.total }" name="totalRecord" />
		<jsp:param value="articleInfor.do" name="url" />
	</jsp:include>
	<form action="<%=ctx%>/back/article/delArticle.do" method="post"
		style="display: none" id="del-article">
		<input name="id" type="hidden" />
	</form>
	<form action="<%=ctx%>/back/article/delArticles.do" method="post"
		style="display: none" id="del-articles">
		<input name="ids" type="hidden" />
	</form>
</body>
</html>